package com.gitee.cashzhang27.test.cloud.oauth.resource.server.component;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 资源服务器对外直接暴露URL
 *
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/01/28 21:48
 */
@Data
@Component
@Configuration
@ConditionalOnExpression("!'${security.oauth2.client.ignore-urls}'.isEmpty()")
@ConfigurationProperties(prefix = "security.oauth2.client")
public class PermitAllUrlProperties {

  private List<String> ignoreUrls = new ArrayList<>();
}
